//
//  WBDemoViewController.swift
//  weibo
//
//  Created by GOD on 16/9/2.
//  Copyright © 2016年 磊王. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {
    
    @objc private func showNext(){
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    
    
    }
 
}

extension WBDemoViewController{
    override func setUI() {
        super.setUI()
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .Plain, target: self, action: #selector(showNext))
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
    }

}
